import { useSelector } from "react-redux";
import { StateType } from "../store";
import { UserInfoStateType } from "../store/userInfoReducer";

function useGetUserInfo() {
  const userInfo = useSelector<StateType>(
    (state) => state.userInfo
  ) as UserInfoStateType;

  return userInfo;
}

export default useGetUserInfo;
